package flappy.bird.cover.component;

import javax.microedition.lcdui.Image;

public class Pipe {
	private Image imgPiPeTop;
	private Image imgPiPeBottom;
	private int iPositionX;
	private int iPositionY;
	// Khoang cach giua pipe tren va pipe duoi
	private final int DISTANCE = 40;

	public Pipe() {
		try {
			imgPiPeTop = Image.createImage("/pipe_top.png");
			imgPiPeBottom = Image.createImage("/pipe_bottom.png");
		} catch (Exception e) {
		}
	}

	public int getDistance() {
		return DISTANCE;
	}


	public int getiPositionX() {
		return iPositionX;
	}

	public void setiPositionX(int iPositionX) {
		this.iPositionX = iPositionX;
	}

	public int getiPositionY() {
		return iPositionY;
	}

	public void setiPositionY(int iPositionY) {
		this.iPositionY = iPositionY;
	}

	public Image getImgPiPeTop() {
		return imgPiPeTop;
	}

	public void setImgPiPeTop(Image imgPiPeTop) {
		this.imgPiPeTop = imgPiPeTop;
	}

	public Image getImgPiPeBottom() {
		return imgPiPeBottom;
	}

	public void setImgPiPeBottom(Image imgPiPeBottom) {
		this.imgPiPeBottom = imgPiPeBottom;
	}

}
